home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
.net 2002 March
/
DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin
/
pc
/
PC Software
/
free_browsing
/
DavesQckSearchDbar3-14
/
dqsd.exe
/
searches
/
ups.xml
< prev
next >
Wrap
Text File
|
2002-09-27
|
3KB
|
77 lines
<search function="ups">
<name>Track UPS Packages</name>
<description>Track UPS packages by tracking number (up to 20):
<div class="helpboxDescLabels">Example:</div>
<table class="helpboxDescTable">
<tr>
<td>ups [tracking#1], [tracking#2]</td>
</tr>
</table>
</description>
<category>Shipping</category>
<link>http://www.ups.com/tracking/tracking.html</link>
<contributor>Glenn Carr</contributor>
<idea>stickyc's buddy</idea>
<form name="upsf"
action="http://wwwapps.ups.com/etracking/tracking.cgi">
<input type="hidden" name="tracknums_displayed"/>
<input type="hidden" name="TypeOfInquiryNumber" value="T"/>
<input type="hidden" name="HTMLVersion" value="4.0"/>
<input type="hidden" name="sort_by" value="status"/>
<input type="hidden" name="InquiryNumber1"/>
<input type="hidden" name="InquiryNumber2"/>
<input type="hidden" name="InquiryNumber3"/>
<input type="hidden" name="InquiryNumber4"/>
<input type="hidden" name="InquiryNumber5"/>
<input type="hidden" name="InquiryNumber6"/>
<input type="hidden" name="InquiryNumber7"/>
<input type="hidden" name="InquiryNumber8"/>
<input type="hidden" name="InquiryNumber9"/>
<input type="hidden" name="InquiryNumber10"/>
<input type="hidden" name="InquiryNumber11"/>
<input type="hidden" name="InquiryNumber12"/>
<input type="hidden" name="InquiryNumber13"/>
<input type="hidden" name="InquiryNumber14"/>
<input type="hidden" name="InquiryNumber15"/>
<input type="hidden" name="InquiryNumber16"/>
<input type="hidden" name="InquiryNumber17"/>
<input type="hidden" name="InquiryNumber18"/>
<input type="hidden" name="InquiryNumber19"/>
<input type="hidden" name="InquiryNumber20"/>
</form>
<script><![CDATA[
function ups(q)
{
if( nullArgs("ups", q) )
return false;
if (q == "")
openSearchWindow("http://www.ups.com/tracking/tracking.html");
else
{
if (result = q.split( /\s*,+\s*/ ) )
{
for ( var i = 1; i <= 20; i++ ) {
if (i <= result.length) {
track = result[i - 1];
} else {
track = "";
}
track = track.replace(/\W/g,"");
eval( "document.upsf.InquiryNumber" + i + ".value='" + track + "';" );
}
document.upsf.tracknums_displayed.value = result.length;
submitForm(upsf);
}
}
}
]]></script>
<copyright>
Copyright (c) 2002 David Bau
Distributed under the terms of the
GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
</copyright>
</search>